package VN.EDU.IMIC.DEVELOPER.TRINHCAOSANG.Exam01.Bai1.Bai1;

/**
 * Created by Sang on 07/03/2016.
 */
public class BannguyetEntity implements IGeometricObject {
    private double bankinh;

    public double getBankinh() {
        return bankinh;
    }

    public void setBankinh(double bankinh) {
        this.bankinh = bankinh;
    }

    @Override
    public double getArea(Object object) {
        return (Math.PI * bankinh * bankinh) / 2;
    }

    @Override
    public double getPerimeter(Object object) {
        return Math.PI * bankinh;
    }
}
